(Fformat_mode_line): Do nothing when noninteractive.
authorJason Rumney <jasonr@gnu.org>
Tue, 30 Oct 2007 22:48:26 +0000 (22:48 +0000)
committerJason Rumney <jasonr@gnu.org>
Tue, 30 Oct 2007 22:48:26 +0000 (22:48 +0000)
src/xdisp.c

index 92c0af8c5ed1bf495d798e2118af6d65f6fd6c81..9e3a3bade1f55a2b906845a49b2f5c594094d1b8 100644 (file)
@@ -17368,7 +17368,9 @@ are the selected window and the window's buffer).  */)
     buffer = w->buffer;
   CHECK_BUFFER (buffer);
 
-  if (NILP (format))
+  /* Make formatting the modeline a non-op when noninteractive, otherwise
+     there will be problems later caused by a partially initialized frame.  */
+  if (NILP (format) || noninteractive)
     return build_string ("");
 
   if (no_props)